<?php

namespace IDock\Insurance\ZYIC\Request;

use IDock\Insurance\ZYIC\Request\AllZYICRequest;
use IDock\Insurance\ZYIC\Response\ProposalStatusResponse;
use IDock\Insurance\ZYIC\Response\UnderwritingReasonResponse;
use IDock\Visitor\ProposalStatusVisitor;

class UnderwritingReasonRequest extends AllZYICRequest
{
    public $route = 'channelInterface/V15';

    protected $response = UnderwritingReasonResponse::class;

    protected $urlTip = '核保意见查看';

    /*** @var  ProposalStatusVisitor $visitor */
    protected $visitor;

    public function generate(): array
    {
        return [
            'businessNo' => $this->visitor->biInquiryNo ?: $this->visitor->ciInquiryNo,
            'certiType' => 'T'
        ];
    }
}
